package com.shenmazong.demoesserver.service;

import com.shenmazong.demoesserver.pojo.TbPerson;

import java.util.Iterator;
import java.util.List;

public interface TbPersonService {
    void createIndex(String indexName);
    void createIndex(Class<?> clazz);
    void deleteIndex(String indexName);
    void deleteIndex(Class<?> clazz);
    void save(TbPerson person);
    void saveAll(List<TbPerson> list);
    Iterator<TbPerson> findAll();
    Iterator<TbPerson> findAll(String keyWord);
}
